<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>弹性布局</title>
		<style>
		#box{
			display: flex;
			height: 700px;
			border: 2px solid red;
			flex-flow: row wrap;
			/* justify-content: center; */
			justify-content: space-around;
			align-items: center;
			align-content: space-around;
			
			
		}
		#box div{
			height: 100px;
			width: 200px;
			background-color: darkgray;
			margin: 5px;
			text-align: center;
			line-height: 100px;
			
			flex-shrink: 0.4;
		}
		#box  .c{
			order: -3;
			flex-grow: 2;
		}
		</style>
	</head>
	<body>
		<div id="box">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div>4</div>
			<div>5</div>
			<div>6</div>
			<div>7</div>
			<div>8</div>
			<div class="c">9</div>
			<div class="c">14</div>
			<div class="c">15</div>
			<div>16</div>
			<div>17</div>
			<div>18</div>
		</div>
	</body>
</html>
